#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Volume.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Volume)
{
    //Volume volume
    TEST(should be able to judge the volume1 is equal to volume2: volume1 = 1 TBSP, volume2 = 2 TSP)
    {
        Volume volume1(1, TBSP);
        Volume volume2(3, TSP);
        ASSERT_TRUE(volume1 == volume2);
    }
    
    TEST(should be able to judge volume1 = volume2: volume1 = 1 OZ, volume2 = 3 TBSP)
    {
        Volume volume1(1, OZ);
        Volume volume2(2, TBSP);
        ASSERT_TRUE(volume1 == volume2);
    }
    
    TEST(should be able to judge volume3(12tsp) == volume1(2 tbsp) + volume2(1 oz))
    {
        Volume volume1(2, TBSP);
        Volume volume2(1, OZ);
        Volume volume3(12, TSP);
        ASSERT_EQ(volume3, volume1 + volume2);
    }
};
